9fbb7db35f8a676a0a581a8b223a5023079e86e9,src/main/java/com/ibm/ets/ita/ce/store/hudson/helper/WordCheckerCache.java,WordCheckerCache,checkForMatchingInstances,#ActionContext#ProcessedWord#,88

Before Change


	}

	public synchronized void checkForMatchingInstances(ActionContext pAc, ProcessedWord pWord) {
		String cacheKey = pWord.getDeclutteredText();
		ArrayList<CeInstance> tgtInsts = null;
		HudsonManager hm = ServletStateManager.getHudsonManager(pAc);

		if (!this.matchingInstances.containsKey(cacheKey)) {
//			reportDebug("Looking live for instance using: " + cacheKey, pAc);
			tgtInsts = new ArrayList<CeInstance>();
			ArrayList<CeInstance> possInsts = hm.getIndexedEntityAccessor(pAc.getModelBuilder()).getInstancesNamedOrIdentifiedAs(pAc, cacheKey);

			for (CeInstance possInst : possInsts) {
				if (isValidMatchingInstance(pAc, possInst)) {	
					tgtInsts.add(possInst);
				}
			}

			this.matchingInstances.put(cacheKey, tgtInsts);
		} else {
			tgtInsts = this.matchingInstances.get(cacheKey);
		}

		if (!tgtInsts.isEmpty()) {

After Change


	}

	public synchronized void checkForMatchingInstances(ActionContext pAc, ProcessedWord pWord) {
		checkForMatchingInstancesUsing(pAc, pWord, pWord.getDeclutteredText());

		String depText = pWord.depluralise(pWord.getDeclutteredText());

		if (depText != null) {
			checkForMatchingInstancesUsing(pAc, pWord, depText);